/*
 * Powered By [pkuWx]
 * Web Site: http://www.wuxi.ss.pku.edu.cn
 * Since 2015 - 2015
 */

package cn.edu.pku.wxlib.usertobookborrow.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.edu.pku.wxlib.usertobookborrow.dao.UsertobookborrowDao;
import cn.edu.pku.wxlib.usertobookborrow.model.Usertobookborrow;
import cn.edu.pku.wxlib.usertobookborrow.vo.query.UsertobookborrowQuery;
import cn.edu.pku.wxlib.vo.query.BookBorrowFullQuery;
import cn.edu.pku.wxlib.vo.response.BookBorrowFull;
import javacommon.base.BaseManager;
import javacommon.base.EntityDao;
import javacommon.page.Page;

/**
 * @version 1.0
 * @since 1.0
 */

@Service
@Transactional
public class UsertobookborrowManager extends BaseManager<Usertobookborrow,UsertobookborrowQuery,java.lang.Integer> implements UsertobookborrowService{
	
	@Autowired
	private UsertobookborrowDao usertobookborrowDao;
	public void setUsertobookborrowDao(UsertobookborrowDao dao) {
		this.usertobookborrowDao = dao;
	}
	public EntityDao getEntityDao() {
		return this.usertobookborrowDao;
	}
	
	@Transactional(readOnly=true)
	public Page findPage(UsertobookborrowQuery query) {
		return usertobookborrowDao.findPage(query);
	}
	public Page findFull(BookBorrowFullQuery query) {
		return usertobookborrowDao.findFull(query);
	}
	public List<Usertobookborrow> countByStates(BookBorrowFullQuery query) {
		return usertobookborrowDao.countByStates(query);
	}
	
}
